package com.baoyi.widget;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.baoyi.doamin.Comments;
import com.baoyi.pooke.R;

public class CommentsItemWidget extends LinearLayout {

	public CommentsItemWidget(Context context, Comments comments) {
		super(context);
		LayoutInflater.from(getContext()).inflate(R.layout.commentsitem, this);
		commenttext = (TextView) findViewById(R.id.commenttext);
		commentdate = (TextView) findViewById(R.id.commentdate);

		commenttext.setText(comments.getContents());
		commentdate.setText(comments.getPubtime());
	}

	private TextView commenttext;
	private TextView commentdate;
}
